public class student{
    static int studcount = 0;
    public student(){
        studcount ++;
    }
    public static int GetStudentCount(){
        return (studcount);
    }
}
class AppStud{
    public static void Main(){
        student student1 = new student();
        console.WriteLine("学生人数 = {0}",student.GetStudentCount());
        student student2 = new student();
        Console.writeLine("学生人数 = {0}",student.GetStudentCount());
    }
}